@import "./base/base";

/* collection page start */
.collection_page {
    font-size:pxToRem(28px);
    .collection_nav_header {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        z-index: 9;
        .collection_nav {
            background: #fff;
            li {

                text-align: center;
                span {
                    display: inline-block;
                    height: pxToRem(88px);
                    line-height: pxToRem(88px);
                    padding: 0 pxToRem(60px);
                }
                &.active-nav span {
                    color: #ff5c33;
                    background: url(../images/icon_nav_active.png) no-repeat center bottom;
                    -webkit-background-size: 100% 0.125rem;
                }
            }
        }
    }
    #collection_content {
        .swiper-slide {
            padding-top: pxToRem(90px);
            .no-collection-container{
                width: 100%;
                text-align: center;
                background-color: #fff;
                padding-top: pxToRem(210px);
                .no-attention-icon{
                    width: pxToRem(330px);
                    height: pxToRem(330px);
                    margin: 0 auto;
                    background: url('../images/error_img3.png') no-repeat center;
                    -webkit-background-size:contain;
                    background-size:contain;
                }
                .no-attention-mes-container{
                    margin-top: pxToRem(40px);
                    .no-attention-mes{
                        padding: pxToRem(24px) 0;
                        font-size: pxToRem(32px);
                        line-height: 0;
                        color: #999;
                    }
                }
                .no-attention-btn-container{
                    margin-top: pxToRem(40px);
                    .no-attention-btn{
                        display: inline-block;
                        width: pxToRem(220px);
                        height: pxToRem(88px);
                        padding: pxToRem(44px) 0;
                        line-height: 0;
                        text-align: center;
                        color: #FFF;
                        background-color: $chiefColor;
                        -webkit-border-radius:pxToRem(44px);
                        -moz-border-radius:pxToRem(44px);
                        border-radius:pxToRem(44px);
                    }
                }
            }
            .collection-recipe-list-container{
                .article-intro-font{
                    color: #ffa601;
                }
            }
        }
        .collection_goods_list {
            .collection_goods_wrap {
                padding: pxToRem(40px);
                .collection_goods_items {
                    .item-flag {
                        position: absolute;
                        top: 0;
                        left: pxToRem(16px);
                        z-index: 9;
                        img {
                            width: pxToRem(48px);
                        }
                    }
                    .item-img {
                        float: left;
                        width: pxToRem(130px);
                        height: pxToRem(130px);
                        border: pxToRem(2px) solid #ccc;
                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                    .item-info {
                        position: relative;
                        top: pxToRem(-4px);
                        height: pxToRem(134px);
                        margin-left: pxToRem(150px);
                        word-break: break-all;
                        h3 {
                            display: -webkit-box;
                            max-height: pxToRem(60px);
                            font-size: pxToRem(26px);
                            line-height: pxToRem(30px);
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            overflow: hidden;
                        }
                        h4 {
                            height: pxToRem(24px);
                            margin-top: pxToRem(8px);
                            font-size: pxToRem(24px);
                            color: #999;
                            line-height: pxToRem(24px);
                        }
                        .price {
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            height: pxToRem(28px);
                            color: $chiefColor;
                            font-size: 0;
                            em, s {
                                display: inline-block;
                            }
                            em {
                                line-height: pxToRem(30px);
                                font-size: pxToRem(30px);
                                &:before {
                                    content: '￥';
                                    font-size: pxToRem(24px);
                                    margin-right: 0;
                                    line-height: 1;
                                }
                            }
                            s {
                                line-height: pxToRem(24px);
                                font-size: pxToRem(24px);
                            }
                        }
                    }
                }
            }
        }
        .shop-info {
            padding: pxToRem(40px) pxToRem(32px) pxToRem(24px);
            .shop-img {
                float: left;
                width: pxToRem(120px);
                height: pxToRem(120px);
            }
            .shop-main {
                margin-left: pxToRem(140px);
                h2 {
                    position: relative;
                    height: pxToRem(28px);
                    line-height: pxToRem(28px);
                    font-size: pxToRem(28px);
                    padding-right: pxToRem(100px);
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    span {
                        display: line-block;
                        position: absolute;
                        top: 0;
                        right: 0;
                        font-size: pxToRem(24px);
                        color: #999;
                    }
                }
                .scores {
                    height: pxToRem(24px);
                    margin-top: pxToRem(20px);
                    line-height: pxToRem(24px);
                    overflow: hidden;
                    s, i, em {
                        float: left;
                        display: block;
                        font-size: pxToRem(24px);
                    }
                    s {
                        width: pxToRem(24px);
                        height: pxToRem(24px);
                        margin-right: pxToRem(6px);
                        &.score1 {
                            background: url('../images/icon_star1.png') no-repeat center top;
                            -webkit-background-size: 100% auto;
                            background-size: 100% auto;
                        }
                        &.score0-5 {
                            background: url('../images/icon_star0.5.png') no-repeat center top;
                            -webkit-background-size: 100% auto;
                            background-size: 100% auto;
                        }
                        &.score0 {
                            background: url('../images/icon_star0.png') no-repeat center top;
                            -webkit-background-size: 100% auto;
                            background-size: 100% auto;
                        }
                    }
                    i {
                        margin-left: pxToRem(4px);
                    }
                    em {
                        margin-left: pxToRem(8px);
                    }
                }
                .services {
                    height: pxToRem(30px);
                    margin-top: pxToRem(20px);
                    overflow: hidden;
                    em {
                        display: inline-block;
                        height: pxToRem(30px);
                        width: pxToRem(120px);
                        margin-right: pxToRem(10px);
                        &.song {
                            background: url('../images/icon_kewaisong.png') no-repeat center top;
                            -webkit-background-size: auto 100%;
                            background-size: auto 100%;
                        }
                        &.qu {
                            background: url('../images/icon_keziqu.png') no-repeat center top;
                            -webkit-background-size: auto 100%;
                            background-size: auto 100%;
                        }
                        &.tang {
                            background: url('../images/icon_ketangshi.png') no-repeat center top;
                            -webkit-background-size: auto 100%;
                            background-size: auto 100%;
                        }
                    }
                }
            }
        }
        /* 公用图标 */
        .icon {
            display: inline-block;
            vertical-align: middle;
            background: no-repeat center center;
            background-size: contain;
            & + span {
                display: inline-block;
                vertical-align: middle;
            }
            &.icon-nav-back {
                width: pxToRem(60px);
                height: pxToRem(60px);
                background-image: url("../images/discovery/slice/recipe-icon-back.png");
                background-size: contain;
            }
            &.icon-nav-back-simple {
                width: pxToRem(60px);
                height: pxToRem(60px);
                background-image: url("../images/discovery/slice/icon-nav-back-simple.png");
                background-size: pxToRem(18px) pxToRem(33px);
            }
            &.icon-nav-share {
                width: pxToRem(60px);
                height: pxToRem(60px);
                background-image: url("../images/discovery/slice/recipe-icon-share.png");
                background-size: contain;
            }
            &.icon-nav-more {
                width: pxToRem(60px);
                height: pxToRem(60px);
                background-image: url("../images/discovery/slice/professor-more.png");
                background-size: pxToRem(38px) pxToRem(8px);
            }
            &.icon-more {
                display: block;
                width: pxToRem(44px);
                height: pxToRem(68px);
                background-image: url("../images/discovery/slice/icon-more.png");
                background-size: contain;
            }
            &.icon-arrow {
                display: block;
                width: pxToRem(21px);
                height: pxToRem(40px);
                background-image: url("../images/discovery/slice/icon-arrow-right.png");
                background-size: contain;
            }
            &.icon-play {
                display: block;
                width: pxToRem(90px);
                height: pxToRem(90px);
                background-image: url("../images/discovery/slice/icon-play-video.png");
                background-size: contain;
            }
            &.icon-view,
            &.icon-like,
            &.icon-uploaded {
                margin-right: pxToRem(5px);
            }
            &.icon-view {
                width: pxToRem(34px);
                height: pxToRem(23px);
                background-image: url("../images/discovery/slice/icon-eye.png");
                background-size: contain;
            }
            &.icon-like {
                width: pxToRem(27px);
                height: pxToRem(24px);
                background-image: url("../images/discovery/slice/icon-heart.png");
                background-size: contain;
                &-hollow {
                    width: pxToRem(27px);
                    height: pxToRem(24px);
                    background-image: url("../images/discovery/slice/recipe-icon-heart-hollow.png");
                    background-size: contain;
                    &.active {
                        background-image: url("../images/discovery/slice/icon-heart-active.png");
                        background-size: contain;
                    }
                }
                &.active {
                    background-image: url("../images/discovery/slice/icon-heart-active.png");
                    background-size: contain;
                }
            }
            &.icon-uploaded {
                width: pxToRem(26px);
                height: pxToRem(24px);
                background-image: url("../images/discovery/slice/icon-camera.png");
                background-size: contain;
            }
            &.icon-radish {
                width: pxToRem(24px);
                height: pxToRem(32px);
                background-image: url("../images/discovery/slice/recipe-icon-radish.png");
                background-size: contain;
                &.active {
                    background-image: url("../images/discovery/slice/recipe-icon-radish-active.png");
                    background-size: contain;
                }
            }
            &.icon-clock {
                width: pxToRem(28px);
                height: pxToRem(34px);
                background-image: url("../images/discovery/slice/recipe-icon-clock.png");
                background-size: contain;
            }
            &.icon-camera {
                width: pxToRem(26px);
                height: pxToRem(24px);
                background-image: url("../images/discovery/slice/icon-camera.png");
                background-size: contain;
                &.active {
                    width: pxToRem(32px);
                    height: pxToRem(30px);
                    background-image: url("../images/discovery/slice/recipe-icon-camera-active.png");
                    background-size: contain;
                }
            }
            &.icon-upload-works {
                width: pxToRem(32px);
                height: pxToRem(30px);
                background-image: url("../images/discovery/slice/recipe-icon-photo.png");
                background-size: contain;
                &.active {
                    width: pxToRem(32px);
                    height: pxToRem(30px);
                    background-image: url("../images/discovery/slice/recipe-icon-photo.png");
                    background-size: contain;
                }
            }
            &.icon-edit {
                width: pxToRem(35px);
                height: pxToRem(34px);
                background-image: url("../images/discovery/slice/recipe-icon-edit.png");
                background-size: contain;
                &.active {
                    width: pxToRem(35px);
                    height: pxToRem(34px);
                    background-image: url("../images/discovery/slice/recipe-icon-edit.png");
                    background-size: contain;
                }
            }
            &.icon-thumbup {
                width: pxToRem(39px);
                height: pxToRem(37px);
                background-image: url("../images/discovery/slice/recipe-icon-thumbup.png");
                background-size: contain;
                &.active {
                    width: pxToRem(39px);
                    height: pxToRem(37px);
                    background-image: url("../images/discovery/slice/recipe-icon-thumbup-active.png");
                    background-size: contain;
                }
            }
            &.icon-flash-buy {
                width: pxToRem(132px);
                height: pxToRem(132px);
                background-image: url("../images/discovery/slice/icon-flash-buy.png");
                background-size: contain;
                &.active {
                    width: pxToRem(132px);
                    height: pxToRem(132px);
                    background-image: url("../images/discovery/slice/icon-flash-buy.png");
                    background-size: contain;
                }
            }
            &.icon-plus {
                display: inline-block;
                vertical-align: middle;
                width: pxToRem(30px);
                height: pxToRem(30px);
                background-image: url("../images/discovery/slice/icon-plus.png");
                background-size: contain;
            }
        }
    }

}

/* collection page end */
/* no_more_tips */
.collect_no_more_tips {
    background: #f5f5f5;
    color: #999;
    text-align: center;
    font-size: pxToRem(28px);
    padding: pxToRem(20px) 0;
}

/* collection_more page start */
.collection_more_page {
    h3 {
        color: #999;
        font-size: pxToRem(28px);
        line-height: 1;
        background: #fff;
        padding: pxToRem(16px) pxToRem(8px);
    }
    .choice-address-index {
        padding: pxToRem(20px) pxToRem(32px);
        background-color: $bgWhite;
        h2 {
            color: #999;
            line-height: pxToRem(68px);
            font-size: pxToRem(28px);

        }
        .now-location {
            height: pxToRem(70px);
            em, a {
                display: inline-block;
            }
            em {
                line-height: pxToRem(70px);
                font-size: pxToRem(70px);
            }
            a {
                height: pxToRem(46px);
                padding-left: pxToRem(48px);
                margin-top: pxToRem(12px);
                line-height: pxToRem(52px);
                font-size: pxToRem(24px);
                color: $chiefColor;
                background: url("../images/icon_now_address.png") no-repeat left center;
                -webkit-background-size: pxToRem(32px) auto;
                background-size: pxToRem(32px) auto;
            }
        }
    }
    .shop-info {
        background: #fff;
        padding: pxToRem(40px) pxToRem(32px) pxToRem(24px);
        .shop-img {
            float: left;
            width: pxToRem(120px);
            height: pxToRem(120px);
        }
        .shop-main {
            margin-left: pxToRem(140px);
            h2 {
                position: relative;
                height: pxToRem(28px);
                line-height: pxToRem(28px);
                font-size: pxToRem(28px);
                padding-right: pxToRem(100px);
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                span {
                    display: line-block;
                    position: absolute;
                    top: 0;
                    right: 0;
                    font-size: pxToRem(24px);
                    color: #999;
                }
            }
            .scores {
                height: pxToRem(24px);
                margin-top: pxToRem(20px);
                line-height: pxToRem(24px);
                overflow: hidden;
                s, i, em {
                    float: left;
                    display: block;
                    font-size: pxToRem(24px);
                }
                s {
                    width: pxToRem(24px);
                    height: pxToRem(24px);
                    margin-right: pxToRem(6px);
                    &.score1 {
                        background: url('../images/icon_star1.png') no-repeat center top;
                        -webkit-background-size: 100% auto;
                        background-size: 100% auto;
                    }
                    &.score0-5 {
                        background: url('../images/icon_star0.5.png') no-repeat center top;
                        -webkit-background-size: 100% auto;
                        background-size: 100% auto;
                    }
                    &.score0 {
                        background: url('../images/icon_star0.png') no-repeat center top;
                        -webkit-background-size: 100% auto;
                        background-size: 100% auto;
                    }
                }
                i {
                    margin-left: pxToRem(4px);
                }
                em {
                    margin-left: pxToRem(2px);
                }
            }
            .services {
                height: pxToRem(30px);
                margin-top: pxToRem(20px);
                overflow: hidden;
                em {
                    display: inline-block;
                    height: pxToRem(30px);
                    width: pxToRem(120px);
                    margin-right: pxToRem(10px);
                    &.song {
                        background: url('../images/icon_kewaisong.png') no-repeat center top;
                        -webkit-background-size: auto 100%;
                        background-size: auto 100%;
                    }
                    &.qu {
                        background: url('../images/icon_keziqu.png') no-repeat center top;
                        -webkit-background-size: auto 100%;
                        background-size: auto 100%;
                    }
                    &.tang {
                        background: url('../images/icon_ketangshi.png') no-repeat center top;
                        -webkit-background-size: auto 100%;
                        background-size: auto 100%;
                    }
                }
            }
        }
    }
    .empty-container {
        position: fixed;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    .add_collection {
        position: absolute;
        right: pxToRem(32px);
        bottom: pxToRem(20px);
        background: #fff;
        font-size: pxToRem(24px);
        color: #ff5d3d;
        padding: pxToRem(2px) pxToRem(16px);
        border: 1px solid #ff5d3d;
        border-radius: pxToRem(40px);
        -webkit-user-select: none;
        user-select: none;
    }
    .add_collection:active {
        background: #ff5d3d;
        color: #fff;
    }
}

/* collection_more page end */